package com.gdit.revenue.dao;

import com.gdit.revenue.model.Expenditure;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.*;
import java.util.List;

@Mapper
public interface ChartDao {
    //查询宿舍花销方面的记录
    @Select("select count(*) from expenditure where title=#{temp}")
    int countTemp(String temp);

    @Select("select sum(money) as total from expenditure where title=#{temp}")
    int countTemp1(String temp);


}
